﻿
ADD_DEFINITIONS(-DSQLITE3_EXPORTS -DSQLITE_CORE -DTHREADSAFE -DSQLITE_SECURE_DELETE -DSQLITE_SOUNDEX -DSQLITE_ENABLE_COLUMN_METADATA)

ADD_DEFINITIONS(-DSQLITE_HAS_CODEC=1)
ADD_DEFINITIONS(-DCODEC_TYPE=CODEC_TYPE_AES128)

add_library(sqlite3 STATIC ${CMAKE_CURRENT_SOURCE_DIR}/secure/src/sqlite3secure.c)
target_include_directories(sqlite3 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/include PUBLIC  ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_link_libraries(sqlite3 PRIVATE emoney-core-interface)
set_target_properties(sqlite3 PROPERTIES FOLDER "dep")
set_property(TARGET sqlite3 PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")